package com.vast.ui.component.toolbar;

import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IViewSite;

import com.vast.ui.component.util.ConsoleLogger;
import com.vast.ui.component.util.Logger;
import com.vast.ui.panel.button.views.ViewPart;

public abstract class AbstractToolBarAction {
	private   ViewPart        view;
	protected IViewSite       viewSite;
	protected IActionBars     actionBars;
	protected IToolBarManager toolbar;
	public    Logger          logger;
	
	public AbstractToolBarAction(ViewPart view) {
		this.view = view;
		this.viewSite   = this.view.getViewSite();
		this.actionBars = this.viewSite.getActionBars();
		this.toolbar    = this.actionBars.getToolBarManager();
		this.logger     = new ConsoleLogger();
	}
}
